package com.qf.model;

import java.sql.Date;
import java.sql.Timestamp;

//--交易记录表
public class Log {
    private Integer id;     //转账记录编号
    private String idcade;  //身份证号
    private String phone;   //手机号
    private String  c_id;       //银行卡账号
    private Double money;       //交易金额
    private Integer moneytype;  //余额变动类型  1 ：减钱   2：加钱
    private Timestamp date;          //交易时间
    private Integer type;       //交易类型  1：充值 2：提现   3：转账   4:其他（详细信息添加到message中）
    private String message;     //交易信息
    private String c_ready1;    //备用1
    private String c_ready2;
    private String c_ready3;
    private String c_ready4;
    private String c_ready5;

    public Log() {
    }

    public Log(String idcade, String phone, String c_id, Double money, Integer moneytype, Timestamp date, Integer type, String message) {
        this.idcade = idcade;
        this.phone = phone;
        this.c_id = c_id;
        this.money = money;
        this.moneytype = moneytype;
        this.date = date;
        this.type = type;
        this.message = message;
    }

    public Log(Integer id, String idcade, String phone, String c_id, Double money, Integer moneytype, Timestamp date, Integer type) {
        this.id = id;
        this.idcade = idcade;
        this.phone = phone;
        this.c_id = c_id;
        this.money = money;
        this.moneytype = moneytype;
        this.date = date;
        this.type = type;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getIdcade() {
        return idcade;
    }

    public void setIdcade(String idcade) {
        this.idcade = idcade;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getC_id() {
        return c_id;
    }

    public void setC_id(String c_id) {
        this.c_id = c_id;
    }

    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    public Integer getMoneytype() {
        return moneytype;
    }

    public void setMoneytype(Integer moneytype) {
        this.moneytype = moneytype;
    }

    public Timestamp getDate() {
        return date;
    }

    public void setDate(Timestamp date) {
        this.date = date;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getC_ready1() {
        return c_ready1;
    }

    public void setC_ready1(String c_ready1) {
        this.c_ready1 = c_ready1;
    }

    public String getC_ready2() {
        return c_ready2;
    }

    public void setC_ready2(String c_ready2) {
        this.c_ready2 = c_ready2;
    }

    public String getC_ready3() {
        return c_ready3;
    }

    public void setC_ready3(String c_ready3) {
        this.c_ready3 = c_ready3;
    }

    public String getC_ready4() {
        return c_ready4;
    }

    public void setC_ready4(String c_ready4) {
        this.c_ready4 = c_ready4;
    }

    public String getC_ready5() {
        return c_ready5;
    }

    public void setC_ready5(String c_ready5) {
        this.c_ready5 = c_ready5;
    }

    @Override
    public String toString() {
        return "LogServlet{" +
                "id=" + id +
                ", idcade='" + idcade + '\'' +
                ", phone='" + phone + '\'' +
                ", c_id='" + c_id + '\'' +
                ", money=" + money +
                ", moneytype=" + moneytype +
                ", date=" + date +
                ", type=" + type +
                ", message='" + message + '\'' +
                ", c_ready1='" + c_ready1 + '\'' +
                ", c_ready2='" + c_ready2 + '\'' +
                ", c_ready3='" + c_ready3 + '\'' +
                ", c_ready4='" + c_ready4 + '\'' +
                ", c_ready5='" + c_ready5 + '\'' +
                '}';
    }
}
